import React from 'react';
import { Tabs } from 'antd';

const { TabPane } = Tabs
const renderTabBar = () => {
  console.log(1)
}
class Btabs extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      name: '',
    }
  }

  render() {
    return (
      <Tabs defaultActiveKey="1" renderTabBar={renderTabBar}>
        { this.state.props.tabdata.map(r => <TabPane key={r.id} value={r.id}>{r.name}</TabPane>) }
      </Tabs>
    )
  }
}

export default Btabs
